﻿@model WebUI.Models.UserLoginModel
@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_LayoutLogin.cshtml";
}
@section stylesheets{
    <style type="text/css">
       
    </style>
}
@using (Html.BeginForm("Login", "Users", FormMethod.Post, new { @class = "login_form" }))
{
    @Html.ValidationSummary(true)
    <div class="username">
        <input type="text" value="Username" name="Username" />
    </div>
    <div class="password">
        <input type="password" value="Password" name="Password" />
    </div>
    <div class="blue">
        <button>
            Login</button>
    </div>
    
}
@section scripts{
    <script type="text/javascript">
        // page load delay by Curtis Henson - http://curtishenson.com/articles/quick-tip-delay-page-loading-with-jquery/
        $(function () {
            $('input').each(function (i, val) {
                var _defaultValue = this.value;
                //console.log(_defaultValue);
                $(this).focus(function () {
                    if (this.value == _defaultValue) {
                        this.value = '';
                    }
                });
                $(this).blur(function () {
                    if (this.value == '') {
                        this.value = _defaultValue;
                    }
                });
            });
        });
        // end onload
    </script>
}
